package websocket;

import java.util.List;

import org.java_websocket.WebSocket;

public class ComMsgProcess extends MsgProcess{
	@Override
	public void process(NotifyMsg msg){
		List<WebSocket> sendList=WebsocketServerTest.getInstance().getList();
		String messages=msg.getSocusType()+":"+msg.getMsg();
		for(WebSocket websocket: sendList){
			websocket.send(new String(messages));
		}
	}
}
